package views.projet.onglet.phase;

import java.awt.Component;

import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

public class DesaffecterCellRenderer implements TableCellRenderer
{
	private TableCellRenderer defaultRenderer;

	public DesaffecterCellRenderer(TableCellRenderer renderer)
	{
		super();
		defaultRenderer = renderer;
	}


	public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
	{
		if(value instanceof Component)
			return (Component)value;
		return defaultRenderer.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
	}
}